package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author isriv
 * @date 2018/07/10 下午 08:36
 */

@Setter
@Getter
@ToString
public class Client {

    private Long id;

    private String name;

    private int gender;

    private Integer age;

    private String identityCard;

    private String address;

    private String phone;

    private String email;

    private DataDictionary job;

    private DataDictionary salaryLevel;

    private DataDictionary clientSource;

    private Employee inputUser;

    private Insurancebill bill;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputTime;

    private Employee customerManager;

    private Integer state;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date stateChangeTime;

}